// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui'
import {Grid, GridItem, Panel, MediaBox, Button, TopTips} from 'we-vue'
import 'element-ui/lib/theme-chalk/index.css'
import FastClick from 'fastclick'
import VueRouter from 'vue-router'
// import storeConfig from './vuex/store'
import {InfiniteScroll, Spinner, Field, DatetimePicker} from 'mint-ui'
import infiniteScroll from 'vue-infinite-scroll'
import 'mint-ui/lib/style.css'
import store from './store'
import App from './App'
import routes from './router'
// import Tables from './components/Tables'
// import creatTables from './components/creatTables'
import axios from 'axios'
Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Panel)
Vue.use(MediaBox)
Vue.use(Button)
Vue.use(TopTips)
Vue.use(infiniteScroll)
Vue.component(InfiniteScroll)
Vue.component(Spinner.name, Spinner)
Vue.component(Field.name, Field)
Vue.component(DatetimePicker.name, DatetimePicker)
window.store = store

axios.defaults.headers.post['content-Type'] = 'appliction/x-www-form-urlencoded'
// const router = new VueRouter({
//     routes
// })

FastClick.attach(document.body)

/* eslint-disable no-new */
new Vue({
    store,
    router: routes,
    render: h => h(App)
}).$mount('#app-box')
// new Vue({
//     el: '#app',
//     store,
//     router,
//     template: '<App/>',
//     components: { App }
// })
